package org.ntu.rtsearch.index;

import org.ntu.rtsearch.index.model.Document;
import org.ntu.rtsearch.index.model.InvertedIndex;

public abstract class IndexWriter {
	
	protected long postingCount = 0;

	public abstract void addDocument(Document doc) throws Exception;

	public abstract long getIndexSize();

	/**
	 * the size in byte int ram
	 * 
	 * @return
	 */
	public abstract long getSizeInByte();

	public InvertedIndex getIndex() {
		return null;
	}

	
}
